<!--{loop $_QUERY[mydata] $val}-->
<li><a href="{$_modules[shop][url]}shop.php?shopid=$val[sid]">$val[fullname]</a></li>
<!--{/loop}-->